<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>xiaxuchen的博客</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="UML(不要画的过细，不然不如写代码)0. 注意点​    不是为了画图而画图，是为了让人读懂我的系统，理解我的软件 1. 什么是uml是一种图形表示法，用于问题的分析 表示法、工具(rose)、过程软件建模三大要素  2. 分析问题：  过程: 定义用例 –&gt; 定义领域模型 –&gt; 定义交互图 –&gt; 定义设计类图  定义用例(有什么功能，我想要干什么): 1. 游戏者请求骰子">
<meta property="og:type" content="article">
<meta property="og:title" content="xiaxuchen的博客">
<meta property="og:url" content="http://yoursite.com/2020/08/07/%E7%90%86%E8%AE%BA/UML/index.html">
<meta property="og:site_name" content="xiaxuchen的博客">
<meta property="og:description" content="UML(不要画的过细，不然不如写代码)0. 注意点​    不是为了画图而画图，是为了让人读懂我的系统，理解我的软件 1. 什么是uml是一种图形表示法，用于问题的分析 表示法、工具(rose)、过程软件建模三大要素  2. 分析问题：  过程: 定义用例 –&gt; 定义领域模型 –&gt; 定义交互图 –&gt; 定义设计类图  定义用例(有什么功能，我想要干什么): 1. 游戏者请求骰子">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="c:/Users/xxc、/AppData/Roaming/Typora/typora-user-images/image-20200119114844646.png">
<meta property="og:image" content="c:/Users/xxc、/AppData/Roaming/Typora/typora-user-images/image-20200119115215044.png">
<meta property="og:image" content="c:/Users/xxc、/AppData/Roaming/Typora/typora-user-images/image-20200119120038908.png">
<meta property="og:image" content="c:/Users/xxc、/AppData/Roaming/Typora/typora-user-images/image-20200119120257477.png">
<meta property="og:image" content="c:/Users/xxc、/AppData/Roaming/Typora/typora-user-images/image-20200119120619130.png">
<meta property="article:published_time" content="2020-08-07T15:08:02.285Z">
<meta property="article:modified_time" content="2020-07-19T10:36:54.579Z">
<meta property="article:author" content="xiaxuchen">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="c:/Users/xxc、/AppData/Roaming/Typora/typora-user-images/image-20200119114844646.png">
  
    <link rel="alternate" href="./atom.xml" title="xiaxuchen的博客" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="./css/style.css">

<meta name="generator" content="Hexo 5.0.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="./" id="logo">xiaxuchen的博客</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="./">Home</a>
        
          <a class="main-nav-link" href="./archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="./atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-理论/UML" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="./2020/08/07/%E7%90%86%E8%AE%BA/UML/" class="article-date">
  <time datetime="2020-08-07T15:08:02.285Z" itemprop="datePublished">2020-08-07</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="UML-不要画的过细，不然不如写代码"><a href="#UML-不要画的过细，不然不如写代码" class="headerlink" title="UML(不要画的过细，不然不如写代码)"></a>UML(不要画的过细，不然不如写代码)</h2><h3 id="0-注意点"><a href="#0-注意点" class="headerlink" title="0. 注意点"></a>0. 注意点</h3><p>​    不是为了画图而画图，是为了让人读懂我的系统，理解我的软件</p>
<h3 id="1-什么是uml"><a href="#1-什么是uml" class="headerlink" title="1. 什么是uml"></a>1. 什么是uml</h3><p>是一种图形表示法，用于问题的分析</p>
<p><strong>表示法、工具(rose)、过程</strong>软件建模三大要素</p>
<p><img src="C:\Users\xxc、\AppData\Roaming\Typora\typora-user-images\image-20200119114844646.png" alt="image-20200119114844646"></p>
<h3 id="2-分析"><a href="#2-分析" class="headerlink" title="2. 分析"></a>2. 分析</h3><p>问题：</p>
<p><img src="C:\Users\xxc、\AppData\Roaming\Typora\typora-user-images\image-20200119115215044.png" alt="image-20200119115215044"></p>
<p>过程: 定义用例 –&gt; 定义领域模型 –&gt; 定义交互图 –&gt; 定义设计类图</p>
<ol>
<li><p>定义用例(有什么功能，我想要干什么):</p>
<pre><code>1. 游戏者请求骰子
 2. 展示游戏结果，为7点赢，否则输</code></pre>
</li>
<li><p>定义领域模型(识别问题中的概念，对真实世界领域中的概念或想象的可视化)</p>
<ol>
<li>游戏者</li>
<li>骰子游戏</li>
<li>骰子</li>
</ol>
<p><img src="C:\Users\xxc、\AppData\Roaming\Typora\typora-user-images\image-20200119120038908.png" alt="image-20200119120038908"></p>
</li>
<li><p>交互图(职责与协作)</p>
<p><img src="C:\Users\xxc、\AppData\Roaming\Typora\typora-user-images\image-20200119120257477.png" alt="image-20200119120257477"></p>
</li>
<li><p>设计(从领域模型和交互图中获取一些启示，定义软件类，包括属性、方法等)</p>
<p><img src="C:\Users\xxc、\AppData\Roaming\Typora\typora-user-images\image-20200119120619130.png" alt="image-20200119120619130"></p>
</li>
</ol>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/08/07/%E7%90%86%E8%AE%BA/UML/" data-id="ckdkdagw0000yvout2inhckt6" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="./2020/08/07/%E7%90%86%E8%AE%BA/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F%E5%AD%A6%E4%B9%A0(UML%E7%9A%84%E5%AD%A6%E4%B9%A0)/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          (no title)
        
      </div>
    </a>
  
  
    <a href="./2020/08/07/%E7%90%86%E8%AE%BA/HTTP/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title"></div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="./archives/2020/08/">August 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="./2020/08/07/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%B9%8B%E9%93%BE%E8%A1%A8/">(no title)</a>
          </li>
        
          <li>
            <a href="./2020/08/07/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%B9%8B%E6%A0%88%E4%B8%8E%E9%98%9F%E5%88%97/">(no title)</a>
          </li>
        
          <li>
            <a href="./2020/08/07/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%B9%8B%E6%95%B0%E7%BB%84/">(no title)</a>
          </li>
        
          <li>
            <a href="./2020/08/07/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E6%80%9D%E7%BB%B4%E5%AF%BC%E5%9B%BE/">(no title)</a>
          </li>
        
          <li>
            <a href="./2020/08/07/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/SpringBoot%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/">(no title)</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2020 xiaxuchen<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="./" class="mobile-nav-link">Home</a>
  
    <a href="./archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  
<link rel="stylesheet" href="./fancybox/jquery.fancybox.css">

  
<script src="./fancybox/jquery.fancybox.pack.js"></script>




<script src="./js/script.js"></script>




  </div>
</body>
</html>